﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.DomainModels;

namespace VOL.Domain.IServices.MasterData
{
    public interface ISupplierServices
    {
        /// <summary>
        /// 添加供应商管理
        /// </summary>
        /// <param name="supplier"></param>
        /// <returns></returns>
        Task<int> AddSupplier(Supplier supplier);

        /// <summary>
        /// 供应商管理的显示
        /// </summary>
        /// <returns></returns>
        Task<List<Supplier>> GetAllSupplierList();

        /// <summary>
        /// 根据Id获取单个供应商
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<Supplier> GetSupplierById(int id);

        /// <summary>
        /// 更新供应商信息
        /// </summary>
        /// <param name="supplier"></param>
        /// <returns></returns>
        Task<int> UpdateSupplier(Supplier supplier);

        /// <summary>
        /// 删除供应商
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteSupplier(int id);
    }
}
